package com.springboot_shopping.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_useraddress")
public class UserAddress {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("create_time")
    private Date createTime;
    @TableField("update_time")
    private Date updateTime;
    @TableField("address")
    private String address;
    @TableField("consignee")
    private String consignee;
    @TableField("phone")
    private String phone;
//    @TableField("label")
//    private String label;
    @TableField("is_default")
    private Integer isDefault;
    // 关联用户ID
    @TableField("user_id")
    private Integer userId;

}